package me.zhanshi123.pixelpaygui.gui.paykit

import me.zhanshi123.pixelpaygui.gui.CommonGuiUtil
import me.zhanshi123.pixelpaygui.gui.open.OpenGuiHolder
import org.bukkit.inventory.Inventory

object PayKitGui {
    fun getInventory(kit: String, inventory: Inventory): Inventory {
        inventory.clear()
        val holder = inventory.holder as OpenGuiHolder
        holder.kit = kit
        inventory.setItem(20, CommonGuiUtil.alipay)
        inventory.setItem(22, CommonGuiUtil.wechat)
        inventory.setItem(24, CommonGuiUtil.qq)
        inventory.setItem(40, CommonGuiUtil.close)
        return inventory
    }
}